<div class="modal-header">
    <h3 class="modal-title">警告</h3>
</div>
<div class="modal-body">
    <form name="confirmForm" novalidate>
        <div class="form-group">
            <input name="boardName" ng-model="boardName" type="text" class="form-control"
                   ng-keydown="keyPress($event)" focus="displayForm" placeholder="输入看板名称以确认删除" autocomplete="off"
                   required/>
            <div class="validation-error-message"
                 ng-show="confirmForm.boardName.$error.required && confirmForm.boardName.$dirty">
                请输入看板名称
            </div>
            <div class="validation-error-message"
                 ng-show="confirmForm.boardName.$modelValue!=board.name && confirmForm.boardName.$dirty">
                看板名称与待删除的不一致
            </div>

        </div>
    </form>
</div>
<div class="modal-footer" ng-keydown="keyPress($event)">
    <button class="btn btn-danger" type="button" ng-click="ok()"
            ng-disabled="confirmForm.$invalid||confirmForm.boardName.$modelValue!=board.name">删除
    </button>
    <button class="btn thiki-secondary-button" type="button" ng-click="cancel()">放弃</button>
</div>
